There are many solutions, but the Libevent library and the Libev library can greatly improve performance and event handling capabilities. In this article, we discuss the basic structures and methods used to use and deploy these solutions in UNIX®
Libevent IntroductionLibevent is a lightweight, open-source, high-performance , event-triggered network library for Windows,Linux ,BSD and other platforms, internal use of select,epoll, Kqueue such as system invoke management event mechanism.
Welcome Reprint, Reproduced please specify the original address: http://blog.csdn.net/majianfei1023/article/details/46485705first, what is Libevent?Libevent is a lightweight, open-source, high-performance event-triggered network library for Windows,
Last time, I was very excited because I had compiled the libevent static library on Ubuntu, but the tragedy was that I couldn't live or die when I got it on Windows and used cygwin as a link, it is reported that event_init is not implemented in a
Linux under the compiled reference source of the Readme file, which is mainly recorded under Windows compilation.I. Preparatory workGo to the official website to download the latest stable release version libevent-2.0.22-stableWebsite address: http:/
Download the latest libevent, currentlyLibevent-2.0.21-stable.tar.gzModify "D:\libevent-2.0.21-stable\event_iocp.c", "D:\libevent-2.0.21-stable \evthread_win32.c", "d:\ Libevent-2.0.21-stable\listener.c "Three files, add one line at the beginning of
Originally wanted to try PHP to write High-performance network services, the need to install Libevent expansion, did not expect to make a lot of headDownload Libevent Extensions First:Http://pecl.php.net/package/libeventAfter decompression, start
1. Download Extension official address HTTP://pecl.php.net/package/libevent Please select the appropriate version according to your PHP scriptSuch aswget http://pecl.php.net/get/libevent-0.0.4.tgz2.Download wget http://pecl.php.net/get/libevent-0.
Mainly refer to the method on the Internet, http://blog.sina.com.cn/s/blog_4b93170a0100mbm9.htmland the actual operation of their own, for their own appearance of some situations to explain. and practice in the process of actually compiling
Download libevent:# wget http://www.monkey.org/~provos/libevent-1.2.tar.gz directly with wget instructions then, you need to specify an installation path during configuration, that is./configure–prefix=/usr; then make; then make install; the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.